-- GENERATED SPELL FOR [Moon Priestess Amara] --


function spell0_2151(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(18561,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2151', 612, 1)
end

function Sorts_2151(pUnit, Event)
local choix_sorts_2151 = math.random(0, 0)
if choix_sorts_2151 == 0 then
pUnit:RegisterEvent('spell0_2151', 1, 1)
end
end

function mob2151_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2151', math.random(1500, 3000), 1)
end

function mob2151_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2151_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2151_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2151, 1, 'mob2151_Action')
RegisterUnitEvent(2151, 2, 'mob2151_Leave')
RegisterUnitEvent(2151, 3, 'mob2151_Kill')
RegisterUnitEvent(2151, 4, 'mob2151_Die')
